#ifndef __IO_H__
#define __IO_H__

#include "packet.h"
#include <string>

using std::string;


namespace rocket
{
class io
{
public:
    io(int) ;
    ~io() ;
    int read_peek(char *,int);
    int read_n(char *,int);
    int write_n(char *,int);
    int read_line(char *,int);
    int read_packet(packet &);
    
private:
    int _fd;
    
};

}

#endif